<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProblemFeedbackTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('problem_feedback', function (Blueprint $table) {
            $table->increments('id');
            $table->string('uid')->default('')->comment('用户id');
            $table->string('status')->default('')->comment('反馈状态');
            $table->string('phone')->default('')->comment('手机号');
            $table->string('content')->default('')->comment('反馈内容');
            $table->string('model')->default('')->comment('手机型号');
            $table->string('system')->default('')->comment('操作系统版本');
            $table->string('platform')->default('')->comment('客户端平台');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('problem_feedback');
    }
}
